﻿using AngryManagementMayhem.Content.Textures.MainMenu;
using Transformable_Engine_v2.Engine.GameObjects.Containers;
using Transformable_Engine_v2.Engine.GameObjects.Containers.Transformable_controls;
using Transformable_Engine_v2.Engine.GameObjects.Primitives;
using Transformable_Engine_v2.Engine.Graphics;
using Transformable_Engine_v2.Engine.Transformable_Math.Geometry;

namespace AngryManagementMayhem.GameCode.Screens.MainMenuScreen.MainMenuObjects
{
    public class MenuBackground : Container
    {
         public MenuBackground(string title)
         {
             AddChildren(new RectanglePrimitive
             {
                 Shape = new TE_Rectangle(1, 1, 42, 2),
                 FillColor = new Color(0, 74, 127),
                 OutlineColor = Color.White,
                 OutlineThickness = 2
             });
             AddChildren(new Label(MainMenuSpriteSheet.GetSprite, title)
             {
                 PositionGridBound = new TE_Vector2(1.5f, 2),
                 TextAlign = TE_Rectangle.Alignment.CenterLeft
             });
             AddChildren(new RectanglePrimitive
             {
                 Shape = new TE_Rectangle(1, 3, 42, 26),
                 FillColor = Color.Transparent,
                 OutlineColor = Color.White,
                 OutlineThickness = 2
             });
         }
    }
}